<html>
  <head>
    <meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
    <title>LocationUtils</title>
<link href="../../../../../../images/logo-icon.svg" rel="icon" type="image/svg"><script>var pathToRoot = "../../../";</script><script type="text/javascript" src="../../../scripts/sourceset_dependencies.js" async="async"></script><link href="../../../styles/style.css" rel="Stylesheet"><link href="../../../styles/logo-styles.css" rel="Stylesheet"><link href="../../../styles/jetbrains-mono.css" rel="Stylesheet"><link href="../../../styles/main.css" rel="Stylesheet"><script type="text/javascript" src="../../../scripts/clipboard.js" async="async"></script><script type="text/javascript" src="../../../scripts/navigation-loader.js" async="async"></script><script type="text/javascript" src="../../../scripts/platform-content-handler.js" async="async"></script><script type="text/javascript" src="../../../scripts/main.js" async="async"></script>  </head>
  <body>
    <div id="container">
      <div id="leftColumn"><a href="../../../index.html">
          <div id="logo"></div>
        </a>
        <div id="paneSearch"></div>
        <div id="sideMenu"></div>
      </div>
      <div id="main">
        <div id="leftToggler"><span class="icon-toggler"></span></div>
<script type="text/javascript" src="../../../scripts/main.js"></script>        <div class="main-content" id="content" pageIds="Engine::com.drake.engine.utils/LocationUtils///PointingToDeclaration//-1683276876">
          <div class="navigation-wrapper" id="navigation-wrapper">
            <div class="breadcrumbs"><a href="../../../index.html">Engine</a>/<a href="../index.html">com.drake.engine.utils</a>/<a href="index.html">LocationUtils</a></div>
            <div class="pull-right d-flex">
              <div id="searchBar"></div>
            </div>
          </div>
          <div class="cover ">
            <h1 class="cover"><span>Location</span><wbr></wbr><span>Utils</span></h1>
            <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">class <a href="index.html">LocationUtils</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><div class="sample-container"><code class="" theme="idea"><pre>    author: Blankj
    blog  : http://blankj.com
    time  : 16/11/13
    desc  : 定位相关工具类
</pre></code></div></div></div>
          </div>
          <div class="tabbedcontent">
            <div class="tabs-section" tabs-section="tabs-section"><button class="section-tab" data-active="" data-togglable="Types">Types</button><button class="section-tab" data-togglable="Functions">Functions</button></div>
            <div class="tabs-section-body">
              <h2 class="">Types</h2>
              <div class="table" data-togglable="Types"><a data-name="1777135819%2FClasslikes%2F-1683276876" anchor-label="OnLocationChangeListener" id="1777135819%2FClasslikes%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="-on-location-change-listener/index.html">OnLocationChangeListener</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1777135819%2FClasslikes%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">interface <a href="-on-location-change-listener/index.html">OnLocationChangeListener</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
</div>
</div>
                    </div>
                  </div>
                </div>
              </div>
              <h2 class="">Functions</h2>
              <div class="table" data-togglable="Functions"><a data-name="-1696699217%2FFunctions%2F-1683276876" anchor-label="getAddress" id="-1696699217%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-address.html">getAddress</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1696699217%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="get-address.html">getAddress</a>(latitude: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>, longitude: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>): <a href="https://developer.android.com/reference/kotlin/android/location/Address.html">Address</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1696699217%2FFunctions%2F-1683276876" anchor-label="getAddress" id="-1696699217%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-1696699217%2FFunctions%2F-1683276876" anchor-label="getAddress" id="-1696699217%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>根据经纬度获取地理位置</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1698158012%2FFunctions%2F-1683276876" anchor-label="getCountryName" id="1698158012%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-country-name.html">getCountryName</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1698158012%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="get-country-name.html">getCountryName</a>(latitude: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>, longitude: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>): <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1698158012%2FFunctions%2F-1683276876" anchor-label="getCountryName" id="1698158012%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1698158012%2FFunctions%2F-1683276876" anchor-label="getCountryName" id="1698158012%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>根据经纬度获取所在国家</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1237920268%2FFunctions%2F-1683276876" anchor-label="getLocality" id="1237920268%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-locality.html">getLocality</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1237920268%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="get-locality.html">getLocality</a>(latitude: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>, longitude: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>): <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1237920268%2FFunctions%2F-1683276876" anchor-label="getLocality" id="1237920268%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1237920268%2FFunctions%2F-1683276876" anchor-label="getLocality" id="1237920268%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>根据经纬度获取所在地</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="972038764%2FFunctions%2F-1683276876" anchor-label="getStreet" id="972038764%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="get-street.html">getStreet</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="972038764%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="get-street.html">getStreet</a>(latitude: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>, longitude: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-double/index.html">Double</a>): <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="972038764%2FFunctions%2F-1683276876" anchor-label="getStreet" id="972038764%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="972038764%2FFunctions%2F-1683276876" anchor-label="getStreet" id="972038764%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>根据经纬度获取所在街道</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1362408936%2FFunctions%2F-1683276876" anchor-label="isBetterLocation" id="1362408936%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-better-location.html">isBetterLocation</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1362408936%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="is-better-location.html">isBetterLocation</a>(newLocation: <a href="https://developer.android.com/reference/kotlin/android/location/Location.html">Location</a>, currentBestLocation: <a href="https://developer.android.com/reference/kotlin/android/location/Location.html">Location</a>): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1362408936%2FFunctions%2F-1683276876" anchor-label="isBetterLocation" id="1362408936%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1362408936%2FFunctions%2F-1683276876" anchor-label="isBetterLocation" id="1362408936%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>是否更好的位置</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="237787789%2FFunctions%2F-1683276876" anchor-label="isGpsEnabled" id="237787789%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-gps-enabled.html">isGpsEnabled</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="237787789%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="is-gps-enabled.html">isGpsEnabled</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="237787789%2FFunctions%2F-1683276876" anchor-label="isGpsEnabled" id="237787789%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="237787789%2FFunctions%2F-1683276876" anchor-label="isGpsEnabled" id="237787789%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>判断Gps是否可用</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="208275882%2FFunctions%2F-1683276876" anchor-label="isLocationEnabled" id="208275882%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-location-enabled.html">isLocationEnabled</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="208275882%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="is-location-enabled.html">isLocationEnabled</a>(): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="208275882%2FFunctions%2F-1683276876" anchor-label="isLocationEnabled" id="208275882%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="208275882%2FFunctions%2F-1683276876" anchor-label="isLocationEnabled" id="208275882%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>判断定位是否可用</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1829469198%2FFunctions%2F-1683276876" anchor-label="isSameProvider" id="-1829469198%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="is-same-provider.html">isSameProvider</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1829469198%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="is-same-provider.html">isSameProvider</a>(provider0: <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>, provider1: <a href="https://developer.android.com/reference/kotlin/java/lang/String.html">String</a>): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1829469198%2FFunctions%2F-1683276876" anchor-label="isSameProvider" id="-1829469198%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-1829469198%2FFunctions%2F-1683276876" anchor-label="isSameProvider" id="-1829469198%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>是否相同的提供者</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1172437623%2FFunctions%2F-1683276876" anchor-label="openGpsSettings" id="-1172437623%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="open-gps-settings.html">openGpsSettings</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1172437623%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="open-gps-settings.html">openGpsSettings</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1172437623%2FFunctions%2F-1683276876" anchor-label="openGpsSettings" id="-1172437623%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-1172437623%2FFunctions%2F-1683276876" anchor-label="openGpsSettings" id="-1172437623%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>打开Gps设置界面</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="-1103014382%2FFunctions%2F-1683276876" anchor-label="register" id="-1103014382%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="register.html">register</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="-1103014382%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace"><div class="block"><div class="block">@<a href="https://developer.android.com/reference/kotlin/androidx/annotation/RequiresPermission.html">RequiresPermission</a>(<span>value = <a href="https://developer.android.com/reference/kotlin/android/Manifest.permission.html">Manifest.permission.ACCESS_FINE_LOCATION</a></span><wbr></wbr>)</div></div>open fun <a href="register.html">register</a>(minTime: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>, minDistance: <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html">Long</a>, listener: <a href="-on-location-change-listener/index.html">LocationUtils.OnLocationChangeListener</a>): <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html">Boolean</a><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="-1103014382%2FFunctions%2F-1683276876" anchor-label="register" id="-1103014382%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="-1103014382%2FFunctions%2F-1683276876" anchor-label="register" id="-1103014382%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>注册 使用完记得调用<a href="unregister.html">unregister</a>需添加权限 <code>{@code }</code>需添加权限 <code>{@code }</code>需添加权限 <code>{@code * }</code>如果<code>{@code * minDistance}</code>为0，则通过<code>{@code minTime}</code>来定时更新；<code>{@code minDistance}</code>不为0，则以<code>{@code * minDistance}</code>为准；两者都为0，则随时刷新。</div></div>
</div>
                    </div>
                  </div>
                </div>
<a data-name="1058177778%2FFunctions%2F-1683276876" anchor-label="unregister" id="1058177778%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>
                <div class="table-row" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release">
                  <div class="main-subrow keyValue ">
                    <div class=""><span class="inline-flex"><a href="unregister.html">unregister</a><span class="anchor-wrapper"><span class="anchor-icon" pointing-to="1058177778%2FFunctions%2F-1683276876"></span>
                          <div class="copy-popup-wrapper "><span class="copy-popup-icon"></span><span>Link copied to clipboard</span></div>
                        </span></span></div>
                    <div>
                      <div class="title"><div class="divergent-group" data-filterable-current=":engine:dokkaHtml/release" data-filterable-set=":engine:dokkaHtml/release"><div class="with-platform-tags"><span class="pull-right"></span></div>

  <div>
    <div class="platform-hinted " data-platform-hinted="data-platform-hinted"><div class="content sourceset-depenent-content" data-active="" data-togglable=":engine:dokkaHtml/release"><div class="symbol monospace">open fun <a href="unregister.html">unregister</a>()<span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div></div></div>
  </div>
<a data-name="1058177778%2FFunctions%2F-1683276876" anchor-label="unregister" id="1058177778%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a><div class="brief "><a data-name="1058177778%2FFunctions%2F-1683276876" anchor-label="unregister" id="1058177778%2FFunctions%2F-1683276876" data-filterable-set=":engine:dokkaHtml/release"></a>注销</div></div>
</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <div class="footer"><span class="go-to-top-icon"><a href="#content"></a></span><span>© 2021 Copyright</span><span class="pull-right"><span>Generated by </span><a href="https://github.com/Kotlin/dokka"><span>dokka</span><span class="padded-icon"></span></a></span></div>
      </div>
    </div>
  </body>
</html>

